package com.jx.springcloud.controller;

import com.jx.springcloud.service.ComsumerService;
import com.netflix.hystrix.contrib.javanica.annotation.DefaultProperties;
import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import com.netflix.hystrix.contrib.javanica.annotation.HystrixProperty;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class ConsumerControl2 {
    @Resource
    private ComsumerService comsumerService;

    @GetMapping(value = "/consumer/paymentOK2")
    public String paymentOK(){
        return comsumerService.paymentOK();
    }


    @GetMapping(value = "/consumer/paymentlayer2")
    public String paymentlayer(){
        return comsumerService.paymentlayer();
    }

}
